﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class UserControl_WebUserControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["id"];
            if (id != null)
            {
                hypLPhone.Enabled = true;
                hypQuote.Enabled = true;
                hypStatus.Enabled = true;


                hypLPhone.NavigateUrl = "~/Admin/NewLoanPhone.aspx?&keepThis=true&TB_iframe=true&width=700&height=500&id=" + id;
                hypQuote.NavigateUrl = "~/Admin/QuoteDetail.aspx?keepThis=true&TB_iframe=true&width=700&height=500&id=" + id;
                hypStatus.NavigateUrl = "~/Admin/ActionList.aspx?keepThis=true&TB_iframe=true&width=700&height=500&id=" + id;
               // HypPrintSA.NavigateUrl = "~/Admin/ReportSA.aspx?id=" + Global.ConvertToInt(id);
                hypInvice.NavigateUrl = "~/Admin/Tax_invoice.aspx?id=" + Global.ConvertToInt(id);

             }
            else
            {
                hypLPhone.Enabled = false;
                hypQuote.Enabled = false;
                hypStatus.Enabled = false;

               
            }
        }
    }

    //protected void Button4_Click(object sender, EventArgs e)
    //{
    //    Response.Redirect("~/Admin/ReportSA.aspx?id=" + Request.QueryString["id"]);
    //}
    //protected void Button8_Click(object sender, EventArgs e)
    //{
    //    Response.Redirect("~/Admin/Tax_invoice.aspx?id=" + Global.ConvertToInt (Request.QueryString["id"]));
    //}
}
